
const { override, fixBabelImports, addLessLoader, addBabelPlugin } = require("customize-cra") ;

module.exports = override(
    fixBabelImports('import', {
        libraryName: 'antd-mobile',
        style: 'css'
    }),
    addLessLoader({
       lessOptions: {
           javascriptEnabled: true,
           localIdentName: '[local]--[hash:base64:5]'
       }
    }),
    addBabelPlugin(
        ["@babel/plugin-proposal-decorators", { "legacy": true }]
    )

);